package me.msbj.demo.controller;

import lombok.extern.slf4j.Slf4j;
import me.msbj.demo.service.TestService;
import me.msbj.entity.TestVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author fuyuda
 */
@RestController
@RequestMapping("test")
@Slf4j
public class TestController {

//    @Autowired
//    private TestService testService;

    @PostMapping(value = "create")
    public String create(@RequestBody TestVO testVO) {
//        log.info("{}", testVO);
//        testService.create(testEntity);
        return "新增成功";
    }

    @GetMapping
    public Object list() {
        return new Object();
    }
}
